/*
 * Copyright (C) Michael Opitz
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA
 */
#ifndef TV_H
#define TV_H

#define TV_ON 		0
#define TV_VOL_UP 	1
#define TV_VOL_DOWN	2
#define TV_CHAN_UP	3
#define TV_CHAN_DOWN	4

#include "rc5.h"

/** 
 * \brief In this array the 5 tv-signals are stored.
 */
extern rc5 tv_storage[5];
/** 
 * \brief tv_add_signal adds a received rc5 signal to the array
 * 
 * \param signal is the received tv-signal
 * \param recv is the pressed button.
 */
void tv_add_signal(rc5 signal, int recv);
/** 
 * \brief init_tv inits the TV-system
 */
void init_tv();

#endif

